package com.asdc.autoscanfiles.dto;

import org.apache.commons.lang3.builder.ToStringBuilder;

public class RestRet {
	
	private boolean success;
	
	private int errorCode;
	private String errorMessage;
	private Object data;
	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	public int getErrorCode() {
		return errorCode;
	}
	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}
	public String getErrorMessage() {
		return errorMessage;
	}
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
